package com.dyxy.tms.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.dyxy.tms.App;
import com.dyxy.tms.AppConfig;
import com.dyxy.tms.utils.OkHttpUtils;

import android.R.string;

public class UserB1z implements IUserB1z {
	private String url = AppConfig.url + AppConfig.login;
	List<Map<String, String>> list = new ArrayList<Map<String, String>>();
	Map<String, String> map = new HashMap<String, String>();
	List<String> keys = new ArrayList<String>();

	public void login(String username, String password, OnLoginLisener onLoginLisener) {
		map.put("uname", username);
		map.put("upwd", password);
		list.add(map);
		keys.add("uname");
		keys.add("upwd");
//		String result = OkHttpUtils.post(url, list, keys);
//
//		if (OkHttpUtils.loginJson2Str(result).equals("1")) {
//			onLoginLisener.loginSuccess();
//		}else {
//			onLoginLisener.loginFailed();
//		}

	};

}
